
let initState = () => ({
  bannerList: [
    [
      {name:'测试1',id:1},
      {name:'测试2',id:2},
      {name:'测试3',id:3},
      {name:'测试4',id:4},
      {name:'测试5',id:5},
      {name:'测试6',id:6},
    ],
    [
      {name:'测试7',id:7},
      {name:'测试8',id:8},
      {name:'测试9',id:9},
      {name:'测试10',id:10},
      {name:'测试11',id:11},
      {name:'测试12',id:12},
    ],
    [
      {name:'测试13',id:13},
      {name:'测试14',id:14},
      {name:'测试15',id:15},
      {name:'测试16',id:16},
      {name:'测试17',id:17},
      {name:'测试18',id:18},
    ],
  ],
});

export default {
  namespace: 'home',
  state: { ...initState() },
  effects: {},

  reducers: {
    setState(state, action) {
      return { ...state, ...action.payload };
    },
    init(state, action) {
      return { ...initState(), ...action.payload };
    },
  },
};
